<?php
namespace plugin\banmichaoqiangbizhi\validate;
 

use app\common\validate\BaseValidate;
 

class ShoplistValidate extends BaseValidate
{
    protected $rule = [  
    ];

    protected $message = [
           
          'id.number' => 'id必须为数字',
          'id.require' => 'id不得为空',
          
          
          
          'sort.number' => 'sort必须为数字',
          'sort.require' => 'sort不得为空',
          
          
          
          
          'shop_tel.mobile' => '手机号格式错误',
          'uid.number' => 'uid必须为数字',
          
          //数据验证提示
    ];


       
       /**
      * @notes  删除商家  
      * @date 2022-12-04 20:00:00
      * @author 半米科技低代码一键生成
      */
       public function   scenescsj(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  置顶  
      * @date 2022-12-05 17:59:45
      * @author 半米科技低代码一键生成
      */
       public function   scenezd(){ 
                   return $this->append('id','number')->append('id','require')->append('sort','number')->append('sort','require');
       }
       
       /**
      * @notes  审核通过  
      * @date 2022-12-05 18:29:02
      * @author 半米科技低代码一键生成
      */
       public function   sceneshtg(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  查询商家  
      * @date 2022-12-05 19:30:10
      * @author 半米科技低代码一键生成
      */
       public function   scenecxsj(){ 
                   return $this->append('shop_tel','mobile')->append('uid','number');
       }
       //数据验证方法

}